import java.util.Scanner;

public class Test6 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入第一个整数：");
        int num1 = scanner.nextInt();
        System.out.println("请输入第二个整数：");
        int num2 = scanner.nextInt();
        System.out.println("请输入您要进行的运算(0:表示加法运算,1:表示减法运算,2:表示乘法运算,3:表示除法运算):");
        int num3 = scanner.nextInt();
        switch (num3){
            case 0:
                int sum = num1 + num2;
                System.out.println(num1+"+"+num2+"="+sum);
                break;
            case 1:
                int subtraction = num1 - num2;
                System.out.println(num1+"-"+num2+"="+subtraction);
                break;
            case 2:
                int multiplication = num1 * num2;
                System.out.println(num1+"*"+num2+"="+multiplication);
                break;
            case 3:
                int division = num1 / num2;
                System.out.println(num1+"/"+num2+"="+division);
                break;
            default:
                System.out.println("输入错误");
        }
    }
}
